package module.common;

public enum EnumExceptionType {
    SYSTEM_INTERNAL_ANOMALY(1000, "网络不给力，请稍后重试。"),
    VERIFY_FAILED(1001, "验证失败"),//登录验证码
    USER_ALREADY_EXIST(1002,"手机号已注册"),
    USER_NOT_EXIST(1003,"用户不存在"),
    USER_ALREADY_EXIST_BUT_CAN_UPGRADE(1004,"账号已存在，请直接登录"),
    ADMIN_ALREADY_EXISTS(1005,"该管理员已存在"),
    LOGIN_INVALID(1006,"登录状态失效，请重新登录");




    private int errorCode;

    private String codeMessage;

    EnumExceptionType(int errorCode, String codeMessage) {
        this.errorCode = errorCode;
        this.codeMessage = codeMessage;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getCodeMessage() {
        return codeMessage;
    }
}
